package com.shop.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class TestController {

    @Autowired
    private InitSpringContains springContains ;

    @RequestMapping(value = "/test")
    public String test(){

        User user = springContains.getContext().getBean(User.class);
        System.out.println(user.toString());
        return "success";
    }

    public String importFile(@RequestPart("file")MultipartFile file){


        return "";
    }
}
